function tasks_list_due_cb(id, obj) {
    if (obj.checked) {
        $.get('/tasks/' + id + '/done', 
            function (data) {
                $("#notification_canvas").html('Wonder where your tasks went? Check <a href="/tasks/done/">already done tasks</a>');
                pop_notification();
                $(".task_text_"+id).each(function (i) { $(this).addClass('task_done') });
                $(".task_checkbox_"+id).each(function (i) { $(this).attr('checked', true) });
            }
        );
    } else {
        $.get('/tasks/' + id + '/undone', 
            function (data) {
                $(".task_text_"+id).each(function (i) { $(this).removeClass('task_done') });
                $(".task_checkbox_"+id).each(function (i) { $(this).attr('checked', false) });
            }
        );
    }
}
